package com.iweb.day10;

import java.io.FileReader;
import java.io.Reader;

/**
 * @author WuYongheng
 * @date 2021/11/20
 * @description
 */
public class Test3 {
    public static void main(String[] args) {
        Reader reader = null;
        String path = "d:\\a.txt";
        try {
            reader = new FileReader(path);
            char[] dates = new char[5];
            // 把读取到的2（len）个字符，保持到数组下标从2(off)开始的位置
            reader.read(dates, 2, 2);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {

        }
    }
}
